package com.heima.apis.admin;

import com.heima.model.admin.dtos.ChannelDto;
import com.heima.model.admin.pojos.AdChannel;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api(value = "频道管理", tags = "channel", description = "频道管理API")
public interface AdChannelControllerApi {

    // 分页查询频道，有name则加入name条件
    @ApiOperation("频道分页列表查询")
    ResponseResult findByPageAndName(ChannelDto dto);
    @ApiOperation("新增频道")
    ResponseResult insert(AdChannel channel);
    @ApiOperation("修改频道")
    ResponseResult update(AdChannel channel);
    @ApiOperation("删除频道")
    ResponseResult delete(Integer id);

}
